package com.rc.saas.mini.service.ugs;


import com.rc.saas.mini.common.base.BaseService;
import com.rc.saas.mini.mapper.ugs.TenantUgsMemberLevelMapper;
import com.rc.saas.mini.model.member.MemberInfo;
import com.rc.saas.mini.model.ugs.TenantUgsMemberLevel;
import com.rc.saas.mini.model.ugs.TenantUgsMemberLevelExample;

public interface TenantUgsMemberLevelService extends BaseService<Long, TenantUgsMemberLevel, TenantUgsMemberLevelExample, TenantUgsMemberLevelMapper> {

    void insertTenantUgsMemberLevel(MemberInfo memberInfo);

    /**
     * 会员保值期判断降值
     *
     * @param memberId
     */
    void updateReduceLevel(Long memberId);

    TenantUgsMemberLevel selectByMemberId(String tenantCode,Long memberId);

    TenantUgsMemberLevel addTenantUgsMemberLevel(Long memberId,String tenantCode);
}
